<div class="row cl">
  <form action="${BASE}/admin/cms/siteconfigSave" id="form_save" method="post" class="form form-horizontal">
  <input type="hidden" name="id" value="${obj.id!}">
    <div class="col-xs-9">
      <div class="row cl">
        <label class="form-label col-xs-3"><span class="c-red">*</span>站点title：</label>
        <div class="formControls col-xs-6">
          <input type="text" id="siteTitle" name="siteTitle" value="${obj.siteTitle!}" datatype="*2-100" nullmsg="站点title不能为空" class="input-text">
        </div>
        <div class="col-xs-3"> </div>
      </div>
      <div class="row cl">
        <label class="form-label col-xs-3"><span class="c-red">*</span>站点名称：</label>
        <div class="formControls col-xs-6">
          <input type="text" id="siteName" name="siteName" value="${obj.siteName!}" datatype="*2-100" nullmsg="站点名称不能为空" class="input-text">
        </div>
        <div class="col-xs-3"> </div>
      </div>
      <div class="row cl">
        <label class="form-label col-xs-3"><span class="c-red">*</span>站点版权信息：</label>
        <div class="formControls col-xs-6">
          <input type="text" id="siteCopy" name="siteCopy" value="${obj.siteCopy!}" datatype="*2-100" nullmsg="站点版权信息不能为空" class="input-text">
        </div>
        <div class="col-xs-3"> </div>
      </div>
      <div class="row cl">
        <label class="form-label col-xs-3"><span class="c-red">*</span>站点ICP：</label>
        <div class="formControls col-xs-6">
          <input type="text" id="siteIcp" name="siteIcp" value="${obj.siteIcp!}" datatype="*2-100" nullmsg="站点ICP不能为空" class="input-text">
        </div>
        <div class="col-xs-3"> </div>
      </div>
      <div class="row cl">
        <label class="form-label col-xs-3"><span class="c-red">*</span>网站LOGO：</label>
        <div class="formControls col-xs-6">
          <input readonly="readonly" type="text" id="logoUrl" name="logoUrl" value="${obj.logoUrl!}" nullmsg="网站LOGO不能为空" class="input-text">
          <div id="picker">选择图片</div>
        </div>
        <div class="col-xs-3"> </div>
      </div>

      <div class="row cl">
        <label class="form-label col-xs-3">keywords：</label>
        <div class="formControls col-xs-6">
          <textarea id="keywords" name="keywords" cols="" rows="" class="textarea"  placeholder="网页内keywords，用于SEO...200个字符以内" dragonfly="true" onKeyUp="textarealength(this,200)">${obj.keywords!}</textarea>
          <p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
        </div>
        <div class="col-xs-3"> </div>
      </div>
      <div class="row cl">
        <label class="form-label col-xs-3">description：</label>
        <div class="formControls col-xs-6">
          <textarea id="description" name="description" cols="" rows="" class="textarea"  placeholder="网页内description...200个字符以内" dragonfly="true" onKeyUp="textarealength(this,200)">${obj.description!}</textarea>
          <p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
        </div>
        <div class="col-xs-3"> </div>
      </div>
      <div class="row cl">
        <label class="form-label col-xs-3">描述：</label>
        <div class="formControls col-xs-6">
          <textarea id="summary" name="summary" cols="" rows="" class="textarea"  placeholder="描述...200个字符以内" dragonfly="true" onKeyUp="textarealength(this,200)">${obj.summary!}</textarea>
          <p class="textarea-numberbar"><em class="textarea-length">0</em>/200</p>
        </div>
        <div class="col-xs-3"> </div>
      </div>
      
      <div class="row cl">
        <div class="col-xs-10 col-xs-offset-2">
          <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;保存&nbsp;&nbsp;">
        </div>
      </div>
    </div>
    <div class="col-xs-3">
      <div class="panel panel-default">
        <div class="panel-header">图片预览</div>
        <div class="panel-body">
			<img id="fileImage" src="${IMAGEPATH}/${obj.logoUrl!}" class="img-thrum">
            <div id="fileInfo"></div>
        </div>
      </div>
    </div>
  </form>
</div>

<script type="text/javascript">
$(function(){
	uploadImage("picker","fileImage","fileInfo","logoUrl");
	$("#form_save").Validform({
		tiptype:2,
		ajaxPost:true,
		postonce:true,
		callback:function(data){
			$.Hidemsg();
			if("200"==data.tails.retCode){
				layer.msg('保存成功！', {icon: 6,offset: '45px'});
				$("#id").val(data.id);
			}else{
				layer.msg('保存失败！', {icon: 5,offset: '45px'});
			}
		}
	});
});
</script>